package cc.lj.internal.api.coupons.api.ticket;

import cc.lj.internal.api.coupons.dto.DomainResponseDTO;
import cc.lj.internal.api.coupons.dto.command.SendTicketsAPICommand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 调用8080 war 包接口
 * @author liangxifeng
 * @date 2023/8/23 16:35
 */
@FeignClient(value = "batch-api",url = "${feign.domainUrl}")
public interface DomainTicketFeignService {
    /**
     * 调用内网发券接口发放电子券
     */
    @PutMapping(value = "/domain_ticket/sendTicket")
    DomainResponseDTO<Map<String,Object>> sendTicket(@RequestBody SendTicketsAPICommand sendTicketsAPICommand);
}
